package dao;

import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;

import hbt.HibernateUtil;

public class InicioDAO {

	private static InicioDAO instancia;
	private static SessionFactory sf;
	
	
	public static InicioDAO getInstancia(){
		if(instancia==null){
			sf=HibernateUtil.getSessionFactory();
			instancia= new InicioDAO();
		}
		return instancia;
	}
	
	
	
	public void iniciarSession(){
		Session s= sf.openSession();
		s.close();
	}
	
	
}
